import request from '@/hooks/request'

const Api = {
  getBalanceRecordList: '/platform/wechatFans/getBalanceRecordList', // 资金列表
  balanceRecordExcelOut: '/platform/wechatFans/balanceRecordExcelOut', // 微信财务日志-导出表格
}

export const balanceRecordExcelOut = (parameter: Record<any, any>) => {
  return request({
    method: 'post',
    url: Api.balanceRecordExcelOut,
    data: parameter,
    responseType: 'blob'
  })
}

export const getBalanceRecordList = (parameter: Record<any, any>) => {
  return request({
    method: 'post',
    url: Api.getBalanceRecordList,
    data: parameter,
  })
}
